import request from '@/utils/request'

// 查询集成场景配置列表
export function listSceneConfig(query) {
  return request({
    url: '/interfaceConfig/sceneConfig/list',
    method: 'get',
    params: query
  })
}

// 查询集成场景配置详细
export function getSceneConfig(id) {
  return request({
    url: '/interfaceConfig/sceneConfig/' + id,
    method: 'get'
  })
}

// 新增集成场景配置
export function addSceneConfig(data) {
  return request({
    url: '/interfaceConfig/sceneConfig',
    method: 'post',
    data: data
  })
}

// 修改集成场景配置
export function updateSceneConfig(data) {
  return request({
    url: '/interfaceConfig/sceneConfig',
    method: 'put',
    data: data
  })
}

// 删除集成场景配置
export function delSceneConfig(id) {
  return request({
    url: '/interfaceConfig/sceneConfig/' + id,
    method: 'delete'
  })
}

export function getSceneConfigDetail(id) {
  return request({
    url: '/interfaceConfig/sceneConfig/getSceneConfigDetail/' + id,
    method: 'get'
  })
}

export function getSceneSearchList(query) {
  return request({
    url: '/interfaceConfig/sceneConfig/getSceneSearchList',
    method: 'get',
    params: query
  })
}